package Lab2;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import java.awt.BorderLayout;
import javax.swing.JSplitPane;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import javax.swing.JPanel;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class telaIncial {

	private JFrame frame;
	private JTextField tFentrada;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					telaIncial window = new telaIncial();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public telaIncial() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 600, 380);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JScrollPane scrollPane = new JScrollPane();
		frame.getContentPane().add(scrollPane, BorderLayout.WEST);
		
		JPanel panelButtons = new JPanel();
		frame.getContentPane().add(panelButtons, BorderLayout.NORTH);
		
		JRadioButton rdbtnLogn = new JRadioButton("Logn");
		panelButtons.add(rdbtnLogn);
		
		JRadioButton rdbtnNn = new JRadioButton("n^n");
		panelButtons.add(rdbtnNn);
		
		JRadioButton rdbtnN_2 = new JRadioButton("n!");
		panelButtons.add(rdbtnN_2);
		
		JRadioButton rdbtnn = new JRadioButton("2^n");
		panelButtons.add(rdbtnn);
		
		JRadioButton rdbtnN_1 = new JRadioButton("n\u00B2");
		panelButtons.add(rdbtnN_1);
		
		JRadioButton rdbtnNlogn = new JRadioButton("nLogn");
		panelButtons.add(rdbtnNlogn);
		
		JRadioButton rdbtnN = new JRadioButton("n");
		panelButtons.add(rdbtnN);
		
		JRadioButton rdbtnLoglogn = new JRadioButton("LogLogn");
		panelButtons.add(rdbtnLoglogn);
		
		JRadioButton rdbtnK = new JRadioButton("K");
		panelButtons.add(rdbtnK);
		
		JButton btnGerarGrafico = new JButton("Gerar Grafico");
		panelButtons.add(btnGerarGrafico);
		
		tFentrada = new JTextField();
		panelButtons.add(tFentrada);
		tFentrada.setColumns(10);
		
		JLabel lblEntrada = new JLabel("Entrada");
		panelButtons.add(lblEntrada);
		
		JScrollPane scrollGrafico = new JScrollPane();
		frame.getContentPane().add(scrollGrafico, BorderLayout.CENTER);
		
		JPanel panelGrafico = new JPanel();
		scrollGrafico.setViewportView(panelGrafico);
		

		
			}

}
